<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta charset="UTF-8">
	<title>订单</title>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="width:400px">
		<div style="padding:10px 60px 20px 60px;padding: 10%;" align="center" >
	    <form id="ff" method="post" action="order_saveorupd.action" >
	    	<table cellpadding="5">
	    		<tr>
	    			<td>地址:</td>
	    			<td>
	    			<input type="hidden" name="order.orderid" value="${order.orderid}">
	    			<input class="easyui-textbox" type="text" name="order.address" data-options="required:true" value="${order.address}">
	    			</input></td>
	    		</tr>
	    		<tr>
	    			<td>车牌号:</td>
	    			<!-- remote['http://.../action.do','paramName']：发送 ajax 请求来验证值，成功时返回 'true' 。 -->
	    			<td><input class="easyui-textbox" type="text" name="order.carno" data-options="required:true"  value="${order.carno}"></input></td>
	    		</tr>
	    		<tr>
	    			<td>电话号码:</td>
	    			<td><input class="easyui-textbox" type="text" name="order.phoneno" data-options="required:true"  value="${order.phoneno}"></input></td>
	    		</tr>
	    		<tr>
	    			<td>备注:</td>
	    			<td><input class="easyui-textbox" name="order.explain" data-options="multiline:true" style="height:60px"   value="${order.explain}"></input></td>
	    		</tr>
	    	</table>
	    </form>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提 交</a>
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">取 消</a>
	    </div>
	    </div>
	</div>
	<script>
	function submitForm(){		
		$('#ff').form('submit', {          
		    success:function(data){    
		        if(data=="SUCCESS"){
		        	alert(data);
		        	$("#gg").dialog("close");
		        }
		    }    
		}); 
	}
	function clearForm(){
		$('#ff').form('clear');
	}
	</script>
</body>
